<div class="content">
    <p class="news-build">Tin Tức Xây Dựng</p>
    <?php
        if(!empty($info_news)){
            for($i = 0; $i < count($info_news); $i++){
                if($i === 2){
                    break;
                }
    ?>
    <div class="news">
        <a href="<?php echo site_url('tin-tuc/chi-tiet/'.$info_news[$i]['id']); ?>" class="title"><?php echo $info_news[$i]['title']; ?></a>
        <img width="90" height="68" src="<?php echo templateUrl().$info_news[$i]['url_image']; ?>"/>
        <p class="p-title"><?php echo $info_news[$i]['sumary']; ?></p>
        <a class="more" href="<?php echo site_url('tin-tuc/chi-tiet/'.$info_news[$i]['id']); ?>">Xem tiếp ...</a>
    </div>
    <?php if($i === 0){ ?>
    <img class="line-news" src="<?php echo templateUrl(); ?>images/line-up-left.png" />
        <?php } ?>
        <?php }} ?>

    <div class="relation-news">
        <p class="p-relation-news">Các tin liên quan <span>................................................................................................................</span></p>
        <ul>
            <?php if(!empty($info_news)){
                for($i = 2; $i < count($info_news); $i++){
            ?>
            <li><a href="<?php echo site_url('tin-tuc/chi-tiet/'.$info_news[$i]['id']); ?>"><?php echo $info_news[$i]['title']; ?></a> <span style="color: #666;">(<?php echo date("d.m.Y", strtotime($info_news[$i]['created_date'])); ?>)</span></li>
                <?php 
                    }
                } ?>
        </ul>
    </div>
</div>
